/* Canvas base styles */
canvas {
  pointer-events: auto !important;
  touch-action: none;
  transition: cursor 0.2s ease;
}

/* Tool-specific cursors */
canvas[data-tool="pen"] {
  cursor: crosshair !important;
}

canvas[data-tool="highlighter"] {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><text x="0" y="20" font-size="20">🖍️</text></svg>') 0 24, auto !important;
}

canvas[data-tool="eraser"] {
  cursor: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24"><text x="0" y="20" font-size="20">🧹</text></svg>') 0 24, auto !important;
}

/* Disabled state */
canvas.disabled {
  pointer-events: none !important;
  cursor: default !important;
}

/* Drawing state */
canvas.drawing {
  cursor: none !important;
}

/* Selection overlay */
.web-canvas-selection {
  position: absolute;
  background: rgba(66, 133, 244, 0.1);
  border: 1px solid #4285f4;
  pointer-events: none;
  z-index: 10000;
}

/* Text highlight */
.web-canvas-highlight {
  background-color: rgba(255, 255, 0, 0.3);
  position: absolute;
  pointer-events: none;
  z-index: 9999;
}

/* Annotation tooltip */
.web-canvas-tooltip {
  position: absolute;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  padding: 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  z-index: 10001;
  pointer-events: auto;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  font-size: 14px;
  line-height: 1.4;
  max-width: 300px;
}
